package com.litengsoft.lianmeng.common.enums;

/**
 * Created by madongxu on 2017/10/21.
 */
public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    SYSTEM_ERR(10000, "系统错误"),
    PARAM_ERROR(10200, "请求参数错误"),
    PARAM_NOT_NULL(10201, "参数必填"),
    INFO_NOT_EXIST(10202, "信息不存在"),
    ORDER_JSF_EXCEPTION(21001, "订单JSF异常"),
    ORDER_DAO_EXCEPTION(22001, "订单DAO查询异常"),
    ORDER_WEB_JSF_ERROR(23001, "订单前台系统服务异常"),
    DAO_EXCEPTION(21000, "DAO层异常"),
    JSF_EXCEPTION(22000, "JSF层逻辑异常"),
    WEB_EXCEPTION(23000, "WEB层逻辑异常"),
    FAIL(400, "失败"),
    THRIFT_ERROR(50100, "RPC服务调用异常"),
    THRIFT_RET_NULL(50101, "RPC服务返回空"),
    THRIFT_RET_ERROR(50102, "RPC服务调用错误"),
    THRIFT_TIMEOUT(50103, "RPC服务调用超时"),
    ALREADY_TIPED(60001, "已打赏过"),
    INVALID_TIP_ORDER_NO(60002, "根据orderNo未找到打赏记录"),
    UPDATE_TIP_STATUS_ZERO(60003, "根据id修改打赏记录行数为0"),
    GENERATE_FOLLOW_ERROR(60004, "生成业务流水号异常"),
    INVALID_ARTICLE(60005, "非法的文章id"),
    CODE001(9001,"请重新登录"),
    CODE002(9002,"请输入订单号"),
    CODE003(9003,"订单不存在"),
    CODE004(9004,"无法查看非本人订单信息"),
    CODE005(9005,"订单不存在"),
    CODE006(9006,"您查询的订单号为空"),
    CODE007(9007,"您查询的订单不存在，请核对"),
    CODE008(9008,"您查询的订单号不正确，请核对"),
    CODE009(9009,"很抱歉，暂无物流信息更新"),
    CODE010(9010,"您查询的订单号与物流信息中的订单号不一致"),
    CODE011(9011,"获取物流信息失败"),
    CODE012(9012,"由于发起人选择了与平台合作外的快递公司进行投递，无法获取您详细的物流信息，仍需查询请联系发起人或者客服。"),
    CODE013(9013,"认购单不存在."),
    CODE014(9014,"您非此订认购单的支持者，不能确认收货."),
    CODE015(9015,"当前认购单没有发货不能确认收货."),
    CODE016(9016,"确认收货错误."),
    CODE017(9017,"确认收货成功."),
    CODE018(9018,"对账失败"),
    ARTICLE_AUTHORIZED(8000,"文章已被授权，不能重复授权"),
    TIME_PROHIBIT(8001,"当前时段不允许此操作"),

    ;



    private int code;

    private String info;


    ResultCodeEnum(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}